﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class CrossUI : MonoBehaviour {
    public Point pt;

    public void SetPosition(Point pt)
    {
        this.pt = pt;
    }

    void OnPointClick(BaseEventData eventData)
    {
        Datacenter.OnCross(pt);
    }

    void Start () {
        EventManager.addEventListener(gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, OnPointClick);
	}
}
